package com.bosssoft.hr.train.springmvc.example.controller;

import com.bosssoft.hr.train.springmvc.example.annotation.MyLogApi;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @description 用于测试用 测试AOP日志管理 model的使用 页面跳转等
 * @date 2020/6/5
 * @author ChenTong
 */
@Controller
public class HelloController {

    //设置日志信息
    @MyLogApi(msg = "test")
    @GetMapping(value = "/hello")
    public String hello(Model model){
        model.addAttribute("massage","Hello World");
        return "hello";
    }
}
